<?php
	$id_tarif = $_POST['id_tarif'];
	//$id_obat = $_POST['id_obat'];
	$tarif = $_POST['tarif'];
	$id_ppk=$_GET['id_ppk'];
	$jml_tarif=count($id_tarif);

	if(isset($_POST['submit'])){
		foreach($id_tarif as $key=>$val){
			$sql="update tarif_rehabilitasi set tarif='$tarif[$key]' where id_tarif=$val";
			//echo $sql;
			$qry=mysql_query($sql);
		}
		
		
	}
	
	//exit;
	$url_sukses='utama.php?module=mod_tarif_rehabilitasi&id_ppk='.$id_ppk;
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>